package com.saascloud.core;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: lidingyi
 * @Contact: one_dream@aliyun.com
 * @Date: 2022/5/20 16:17
 * @Version: 1.0
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ObsListItemResp {

    private String objectKey;

    public Boolean isDir() {
        return objectKey.endsWith("/");
    }
}
